package cn.dnf.service.impl;

import cn.dnf.domain.Relation;
import cn.dnf.mapper.RelationMapper;
import cn.dnf.service.IRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RelationServiceImpl implements IRelationService {
    @Autowired
    private RelationMapper relationMapper;
    @Override
    public void add(Relation relation) {
        relationMapper.add(relation);
    }

    @Override
    public Relation selectByMovieId(Long id) {
        return relationMapper.selectByMovieId(id);
    }


}
